# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python-apng
_pkgname=apng
pkgver=0.3.4
pkgrel=7
pkgdesc='A Python module to deal with APNG files.'
arch=('any')
url='https://github.com/eight04/pyAPNG'
license=('MIT')
depends=('python-sphinx' 'python-docutils' 'python-pathlib2' 'python-pylint'
         'python-pytest' 'python-pyxcute' 'python-sphinx-autobuild' 'twine'
         'python-wheel')
makedepends=('python-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('6285c776087a086d548029a648899461bce56967a0bd1a60176f1f8c1c0eedf0662e9f63126ac6272fa413ac5f232b5cb589272d740a2d42577252370d064520')

build() {
  cd "$_pkgname-$pkgver"

  python setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build

  rm -rf "$pkgdir"/usr/lib/python3*/site-*/test/
}

